<?php
/**
 * Created by PhpStorm.
 * User: ycp
 * Date: 2017/4/11
 * Time: 20:49
 */

namespace Home\Controller;


use Think\Controller;

class ProductController extends HomeController
{
    public function index()
    {
        $newsData =catGetArticle('产品');
        $this->assign([
            'productData' =>$newsData,
        ]);
        $this->display();
    }
    public function detail()
    {
        $id=I('get.id');
        $productData =catGetArticle('产品');
        $this->assign([
            'productData' =>$productData,
        ]);
        $this->display();
    }

}